package com.hsc.www.tk;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface BrandMapper extends MyBaseMapper<TbBrand>{

    //自己写xml
    List<TbBrand> getBrandByName(TbBrand brand);

    @Select("select id,name,first_char as firstChar from t_brand")
    List<TbBrand> getBrandAll();

}